package com.msb.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.msb.common.utils.PageUtils;
import com.msb.mall.product.entity.AttrEntity;
import com.msb.mall.product.vo.AttrGroupRelationVO;
import com.msb.mall.product.vo.AttrResponseVo;
import com.msb.mall.product.vo.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author xxf
 * @email 1983752950@qq.com
 * @date 2022-09-10 22:42:30
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVO attrVO);

    PageUtils queryBasePage(Map<String, Object> params, Long catelogId, String attrtype);

    AttrResponseVo getAttrInfo(Long attrId);

    void updateBaseAttr(AttrResponseVo attrResponseVo);


    void removeByIdsDetails(Long[] attrIds);

    List<AttrEntity> getRelationAttr(Long attrgroupid);

    void deleteRelation(AttrGroupRelationVO[] attrResponseVo);

    PageUtils getNoAttrRelation(Long attrgroupid, Map<String, Object> param);

    List<Long> selectSearchAttrIds(List<Long> basearrtIds);
}

